import http from "@/config/http.js"

export default {
	async getReportall(data){
		try {
			let res = await http.post("/pro/findProReport", data)
			return res
		} catch (err) {
			alert('请求出错！')
		}
	},
	//添加宣传报道
	async addReport(data){
		try {
			let res = await http.post("/pro/report/save",data)
			return res.data
		} catch (err) {
			alert(err)
		}
	},
	//根绝id查看宣传报道
	async showReportItem(data){
		try {
			let res = await http.post("/pro/report/findReportById",data)
			return res.data
		} catch (err) {
			alert(err)
		}
	},
	//根据id删除宣传报道
	async deteleReportItem(data){
		try {
			let res = await http.post("/pro/report/delete",data)
			return res.data
		} catch (err) {
			alert(err)
		}
	},
	//根据id编辑宣传信息
	async updateReportItem(data){
		try {
			let res = await http.post("/pro/report/update",data)
			return res.data
		} catch (err) {
			alert(err)
		}
	},
}